add_executable(two_thread two_thread.c)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(two_thread PRIVATE Threads::Threads)
